#if !defined(AFX_LEDDISPLAY_H__015202AB_3665_11D3_BD7A_00C04F9902DF__INCLUDED_)
#define AFX_LEDDISPLAY_H__015202AB_3665_11D3_BD7A_00C04F9902DF__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// LedDisplay.h : header file
//
#include "Led.h"
#include "SevenSegment.h"
#include "CommonObject.h"
#include "constants.h"

#define SEVEN_SEGMENT_LED 0
#define EMPTY_LED 1
/////////////////////////////////////////////////////////////////////////////
// CLedDisplay dialog

class CLedDisplay : public CDialog , public CCommonObject
{
// Construction
public:
	void Add(int nType=0);
	void Refresh(BOOL bForce=FALSE);
	void Init();
	CLedDisplay(CWnd* pParent = NULL);   // standard constructor
    virtual ~CLedDisplay();

// Dialog Data
	//{{AFX_DATA(CLedDisplay)
	enum { IDD = IDD_LED_DIALOG };
		// NOTE: the ClassWizard will add data members here
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CLedDisplay)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual void PostNcDestroy();
	//}}AFX_VIRTUAL

    // data members
protected:
	CList<CLed *,CLed *> m_cLeds;
    CWnd* m_pParent;
    int   m_nXPos,m_nYPos;

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CLedDisplay)
	afx_msg void OnPaint();
	afx_msg void OnClose();
	afx_msg void OnDestroy();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_LEDDISPLAY_H__015202AB_3665_11D3_BD7A_00C04F9902DF__INCLUDED_)
